From: George Dunlap Date: Thu, 26 May 2011 14:27:34 +0000 (+0100) Subject: tools: Enable superpages for HVM domains by default X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10277 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=be014da159af4d167ddc73326a489be5eff6466f;p=xen.git tools: Enable superpages for HVM domains by default Signed-off-by: George Dunlap Committed-by: Ian Jackson --- diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index 87d424b620..e07c4ba878 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -340,7 +340,7 @@ int libxl__domain_restore_common(libxl__gc *gc, uint32_t domid, rc = xc_domain_restore(ctx->xch, fd, domid, state->store_port, &state->store_mfn, state->console_port, &state->console_mfn, - info->hvm, info->u.hvm.pae, 0); + info->hvm, info->u.hvm.pae, !!info->hvm); if ( rc ) { LIBXL__LOG_ERRNO(ctx, LIBXL__LOG_ERROR, "restoring domain"); return ERROR_FAIL; diff --git a/tools/xcutils/xc_restore.c b/tools/xcutils/xc_restore.c index ea069ac8f5..985cbecb11 100644 --- a/tools/xcutils/xc_restore.c +++ b/tools/xcutils/xc_restore.c @@ -43,7 +43,7 @@ main(int argc, char **argv) if ( argc == 9 ) superpages = atoi(argv[8]); else - superpages = 0; + superpages = !!hvm; ret = xc_domain_restore(xch, io_fd, domid, store_evtchn, &store_mfn, console_evtchn, &console_mfn, hvm, pae, superpages);